<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    try {
        event(new \App\Events\SayHelloEvent('123'));
        return 'Event dispatched';
    } catch (\Exception $e) {
        return 'Error: '. $e->getMessage();
    }
});
//短信
Route::post('admin/text_message/send_message','TextMessageCmsController@sendMessage');
Route::post('admin/text_message/get_code','TextMessageCmsController@getCode');


//支付
Route::post('admin/payment/native', 'PaymentController@native');
Route::post('admin/payment/notify', 'PaymentController@notify');

